PEGetNthSubreportInSection

Use PEGetNthSubreportInSection to retrieve a handle that is required to retrieve the name of a subreport.

Syntax
DWORD CRPE_API PEGetNthSubreportInSection (
        short printJob,
        short sectionCode,
        short subreportN );
Parameters

printJob

Specifies the primary report.

sectionCode

Specifies the Section Codes, for the report section that contains the subreport. See Working with section codes.

subreportN

Specifies the number of the subreport in the specified section. subreportN is zero based. The first report in the section will be 0, the second will be 1, etc. If there are no subreports in the section, the function will return 0.

Returns

Returns a handle that is used to retrieve the name of the specified subreport.

Remarks

Use PEGetSubreportInfo, to retrieve information about the subreport by passing the subreport handle returned by PEGetNthSubreportInSection.

VB Syntax
Declare Function PEGetNthSubreportInSection Lib "crpe32.dll" (
    ByVal printJob As Integer, ByVal sectionCode As Integer,
    ByVal subreportN As Integer ) As Long
Delphi Syntax
function PEGetNthSubreportInSection (
    printJob: Word;
    sectionCode: Smallint;
    subreportN: Smallint
    ): DWORD stdcall;
See Also:

Working with subreports



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com